import java.awt.Point;

import org.jbox2d.common.Vec2;

public class PhysicsManager {
	private static PhysicsManager physicsManagerInstance;
	public GameEngine handles_physics_for;
	int currentIndexOfBomb;

	private PhysicsManager() {
		currentIndexOfBomb = 0;
	}

	public static PhysicsManager createPhysicsManager() {
		throw new UnsupportedOperationException();
	}

	public void shoot(Point mousePosition, GameObject[][] levelData) {
		double mouseX;
		double mouseY;
		float bombX;
		float bombY;
		float differenceX;
		float differenceY;

		mouseX = mousePosition.getX();
		mouseY = mousePosition.getY();

		bombX = ((Bomb)levelData[3][currentIndexOfBomb]).getPhysicsProperties().getPosition().x;
		bombY = ((Bomb)levelData[3][currentIndexOfBomb]).getPhysicsProperties().getPosition().y;

		differenceX = (float)(mouseX - bombX);
		differenceY = (float)(mouseY - bombY);

		((Bomb)levelData[3][currentIndexOfBomb]).getPhysicsProperties().applyForceToCenter(new Vec2(differenceX, differenceY));
	}

	public GameObject[][] handleCollisions() {
		throw new UnsupportedOperationException();
	}

	public GameObject[][] handleExplosions() {
		
		throw new UnsupportedOperationException();
		
	}
}